﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PTAPI.Core.Domain
{
    public enum MembershipRoleEnum
    {
        Owner,
        Member,
        Viewer
    } 

    [XmlRoot("membership")]
    public class Membership
    {
        public Membership()
        {
            ProjectRef = new ProjectShort();
            Person = new Person();
        }
        [XmlElement("id")]
        public int Id { get; set; }
        [XmlElement("person")]
        public Person Person { get; set; }
        [XmlElement("role")]
        public MembershipRoleEnum MembershipRole { get; set; }
        [XmlElement("project")]
        public ProjectShort ProjectRef { get; set; }
    }
}
